Optimal. Leaf size=77 \[ \frac {x \left (a+b \log \left (c x^n\right )\right )^2}{d (d+e x)}-\frac {2 b n \left (a+b \log \left (c x^n\right )\right ) \log \left (1+\frac {e x}{d}\right )}{d e}-\frac {2 b^2 n^2 \text {Li}_2\left (-\frac {e x}{d}\right )}{d e} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 77, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.150, Rules used = {2355, 2354,
2438} \begin {gather*} -\frac {2 b^2 n^2 \text {PolyLog}\left (2,-\frac {e x}{d}\right )}{d e}-\frac {2 b n \log \left (\frac {e x}{d}+1\right ) \left (a+b \log \left (c x^n\right )\right )}{d e}+\frac {x \left (a+b \log \left (c x^n\right )\right )^2}{d (d+e x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2354
Rule 2355
Rule 2438
Rubi steps
\begin {align*} \int \frac {\left (a+b \log \left (c x^n\right )\right )^2}{(d+e x)^2} \, dx &=\frac {x \left (a+b \log \left (c x^n\right )\right )^2}{d (d+e x)}-\frac {(2 b n) \int \frac {a+b \log \left (c x^n\right )}{d+e x} \, dx}{d}\\ &=\frac {x \left (a+b \log \left (c x^n\right )\right )^2}{d (d+e x)}-\frac {2 b n \left (a+b \log \left (c x^n\right )\right ) \log \left (1+\frac {e x}{d}\right )}{d e}+\frac {\left (2 b^2 n^2\right ) \int \frac {\log \left (1+\frac {e x}{d}\right )}{x} \, dx}{d e}\\ &=\frac {x \left (a+b \log \left (c x^n\right )\right )^2}{d (d+e x)}-\frac {2 b n \left (a+b \log \left (c x^n\right )\right ) \log \left (1+\frac {e x}{d}\right )}{d e}-\frac {2 b^2 n^2 \text {Li}_2\left (-\frac {e x}{d}\right )}{d e}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.04, size = 81, normalized size = 1.05 \begin {gather*} \frac {\left (a+b \log \left (c x^n\right )\right ) \left (a e x+b e x \log \left (c x^n\right )-2 b n (d+e x) \log \left (1+\frac {e x}{d}\right )\right )-2 b^2 n^2 (d+e x) \text {Li}_2\left (-\frac {e x}{d}\right )}{d e (d+e x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
4.
time = 0.14, size = 755, normalized size = 9.81
method | result | size |
risch | \(\frac {i \ln \left (x^{n}\right ) b^{2} \pi \mathrm {csgn}\left (i c \,x^{n}\right )^{3}}{\left (e x +d \right ) e}+\frac {i n \ln \left (x \right ) b^{2} \pi \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}}{e d}+\frac {i \ln \left (x^{n}\right ) b^{2} \pi \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )}{\left (e x +d \right ) e}-\frac {i n \ln \left (e x +d \right ) b^{2} \pi \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}}{e d}-\frac {i n \ln \left (e x +d \right ) b^{2} \pi \,\mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}}{e d}+\frac {i n \ln \left (x \right ) b^{2} \pi \,\mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}}{e d}-\frac {2 b n \ln \left (e x +d \right ) a}{e d}+\frac {2 b n \ln \left (x \right ) a}{e d}-\frac {2 n \ln \left (e x +d \right ) b^{2} \ln \left (c \right )}{e d}+\frac {2 n \ln \left (x \right ) b^{2} \ln \left (c \right )}{e d}-\frac {i \ln \left (x^{n}\right ) b^{2} \pi \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}}{\left (e x +d \right ) e}-\frac {2 b^{2} n \ln \left (e x +d \right ) \ln \left (x^{n}\right )}{e d}+\frac {2 b^{2} n \ln \left (x^{n}\right ) \ln \left (x \right )}{e d}-\frac {i n \ln \left (x \right ) b^{2} \pi \mathrm {csgn}\left (i c \,x^{n}\right )^{3}}{e d}+\frac {i n \ln \left (e x +d \right ) b^{2} \pi \mathrm {csgn}\left (i c \,x^{n}\right )^{3}}{e d}-\frac {i \ln \left (x^{n}\right ) b^{2} \pi \,\mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}}{\left (e x +d \right ) e}-\frac {b^{2} n^{2} \ln \left (x \right )^{2}}{e d}+\frac {2 b^{2} n^{2} \dilog \left (-\frac {e x}{d}\right )}{e d}-\frac {\left (-i b \pi \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )+i b \pi \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}+i b \pi \,\mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}-i b \pi \mathrm {csgn}\left (i c \,x^{n}\right )^{3}+2 b \ln \left (c \right )+2 a \right )^{2}}{4 \left (e x +d \right ) e}+\frac {2 b^{2} n^{2} \ln \left (e x +d \right ) \ln \left (-\frac {e x}{d}\right )}{e d}-\frac {2 b \ln \left (x^{n}\right ) a}{\left (e x +d \right ) e}-\frac {2 \ln \left (x^{n}\right ) b^{2} \ln \left (c \right )}{\left (e x +d \right ) e}-\frac {b^{2} \ln \left (x^{n}\right )^{2}}{\left (e x +d \right ) e}+\frac {i n \ln \left (e x +d \right ) b^{2} \pi \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )}{e d}-\frac {i n \ln \left (x \right ) b^{2} \pi \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )}{e d}\) | \(755\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (a + b \log {\left (c x^{n} \right )}\right )^{2}}{\left (d + e x\right )^{2}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\left (a+b\,\ln \left (c\,x^n\right )\right )}^2}{{\left (d+e\,x\right )}^2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________